package com.wiretap.dao;

import java.util.List;

import com.wiretap.po.Motion;
import com.wiretap.util.Pager;

public interface MotionDao {
	void addMotion(Motion motion) throws Exception;

	int removeMotion(String id) throws Exception;

	Pager<Motion> getAllMotionByPhone(String phone, int currentPage, int pageSize) throws Exception;

	List<Motion> getUnExcuteMotionByPhone(String phone) throws Exception;

	Motion getMotionById(String id) throws Exception;

	void updateMotion(Motion motion) throws Exception;

	int deleteMotionByPhone(String phone) throws Exception;
}
